package com.manager.user.module.platform.core.dao;

import com.manager.commons.mybatis.annotation.MyBatisDao;
import com.manager.commons.mybatis.dao.GenericDao;
import com.manager.user.module.platform.core.entity.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * PlatformUserDao
 *
 * @author H
 * @version 1.0
 */
@MyBatisDao
public interface PlatformUserDao extends GenericDao<UserInfo> {

    UserInfo login(Map<String, Object> map);

    int updatePwd(Map<String, Object> map);

    String findPwd(Map<String, Object> map);

    Map<String, Object> findAccountView(Map<String, Object> map);

    Integer querEditPermission(Map<String, Object> map);

    Integer querDownPermission(Map<String, Object> map);

    int updateLoginTime(@Param("id") String id);
}